<?php
$this->breadcrumbs = array(
    'Chuyên mục' => array('index'),
    $model->title,
);

$this->menu = array(
    array('label' => 'Danh sách', 'url' => array('index')),
    array('label' => 'Thêm mới', 'url' => array('create')),
    array('label' => 'Cập nhật', 'url' => array('update', 'id' => $model->id)),
    array('label' => 'Xóa', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => Yii::t('admin', 'Are you sure you want to delete this category?'), 'csrf' => 'true')),
    array('label' => 'Quản lý', 'url' => array('admin')),
);
?>

<h2>Chi tiết chuyên mục: <?php echo $model->title; ?></h2>

<?php $this->widget('zii.widgets.CDetailView', array(
    'data' => $model,
    'attributes' => array(
        'id',
        //'parent_id',
        array(
            'name' => 'parent_id',
            'value' => isset($model->parent->title) ? $model->parent->title : "" ,
        ),
        'title',
        'sort_order',
        //'status',
        array(
            'name' => 'status',
            'value' => Category::model()->getStatusName($model->status),
        ),
    ),
)); ?>
